//index.js
//获取应用实例
var _utils = require('../../utils/count.js');
var app = getApp();
Page({
  data: {
    motto: 'Hello World',
    userInfo: "",
    second: 5,
    txt: "倒计时",
    disabled:false
  },
  //事件处理函数
  countdaown: function (e) {
    var _this = this;
    _utils.Count(function (date, num) {
      _this.setData({
        txt: date,
        disabled:num
      });
    }, this.data.second)
  },
  onLoad: function () {
  }
})